package com.mayikt.member.service;


import com.mayikt.base.BaseResponse;
import com.mayikt.member.output.dto.UserOutDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther: CHEN JIN LONG
 * @Date: 2019/1/12 00:17
 * @Description:
 */

@Api(tags = "会员信息服务接口")
public interface MemberService {


    @ApiOperation("根据手机号查询是否已经存在")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "mobile", dataType = "String", required = true, value = "手机号")
    })
    @GetMapping("/existMobile")
    BaseResponse<UserOutDTO> existMobile(@RequestParam("mobile") String mobile);


    @ApiOperation("根据Token查询会员信息")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "token", dataType = "String", required = true, value = "Token")
    })
    @GetMapping("/getInfo")
    BaseResponse<UserOutDTO> getInfo(@RequestParam("token") String token);
}
